﻿@using Orchard.MediaLibrary.Models
@using Orchard.Utility.Extensions;
@{
    MediaPart mediaPart = Model.ContentItem.MediaPart;
    var contentTypeClassName = mediaPart.ContentItem.ContentType.HtmlClassify();
}
<article class="media-item media-item-summary-admin summary @contentTypeClassName" itemid="@mediaPart.Id">
    <header>
        @Display(Model.Header)
        @if (Model.Meta != null) {
            <div class="properties">
                @Display(Model.Meta)
            </div>
        }
    </header>
    @Display(Model.Content)
    @if (Model.Footer != null) {
        <footer>
            @Display(Model.Footer)
        </footer>
    }
</article>